package 寒假作业.NC;

import java.util.LinkedList;
import java.util.List;

public class NC141 {
    public boolean judge (String str) {
        char[] ret = new char[str.length()];
        for (int i = 0; i < str.length();i++){
            ret[i] = str.charAt(i);
        }
        int start = 0;
        int end = ret.length - 1;
        while (start < end){
            char c1 = ret[start];
            char c2 = ret[end];
            if(c1 == c2){
                start++;
                end--;
            }else {
                return false;
            }
        }
        return true;
    }
}